/*
* Copyright (c) 2010 Michael Collins
*
* This file is part of TerraFirma.
*
* TerraFirma is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* TerraFirma is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with TerraFirma.  If not, see <http://www.gnu.org/licenses/>.
*/
#include "entity.h"
#include "context.h"
#include <cstring>

namespace game
{
    Entity::Entity() : id(context::Instance().world.shared_entities.next_idx()), pos(0,0), dir(1,0)
    {
        //This can only be called on the server to make sure id's are consistent across all hosts

    }

    Entity::Entity(const fixedpoint::vec2d& p, const fixedpoint::vec2d& d, const char* n) :
            pos(p), dir(d), name(n)
    {
        //strncpy(name, n, 64);
    }

    Entity::~Entity()
    {
        //dtor
    }

}
